home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / gfx / x11 / x3270_3_2_16.lha / amiga_src / CmeBSBP.h < prev    next >
C/C++ Source or Header  |  2007-03-01  |  4KB  |  120 lines

  1. /*
  2.  * (from) $XConsortium: SmeBSBP.h,v 1.6 89/12/11 15:20:15 kit Exp $
  3.  *
  4.  * Modifications Copyright 1995, 1999 by Paul Mattes.
  5.  *  Permission to use, copy, modify, and distribute this software and its
  6.  *  documentation for any purpose and without fee is hereby granted,
  7.  *  provided that the above copyright notice appear in all copies and that
  8.  *  both that copyright notice and this permission notice appear in
  9.  *  supporting documentation.
  10.  *
  11.  * Copyright 1989 Massachusetts Institute of Technology
  12.  *
  13.  * Permission to use, copy, modify, distribute, and sell this software and its
  14.  * documentation for any purpose is hereby granted without fee, provided that
  15.  * the above copyright notice appear in all copies and that both that
  16.  * copyright notice and this permission notice appear in supporting
  17.  * documentation, and that the name of M.I.T. not be used in advertising or
  18.  * publicity pertaining to distribution of the software without specific,
  19.  * written prior permission.  M.I.T. makes no representations about the
  20.  * suitability of this software for any purpose.  It is provided "as is"
  21.  * without express or implied warranty.
  22.  *
  23.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  24.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  25.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  26.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  27.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  28.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  29.  *
  30.  * Author:  Chris D. Peterson, MIT X Consortium
  31.  */
  32.  
  33. /* 
  34.  * CmeP.h - Private definitions for Cme object
  35.  * (from) SmeP.h - Private definitions for Sme object
  36.  * 
  37.  */
  38.  
  39. #ifndef _XawCmeBSBP_h
  40. #define _XawCmeBSBP_h
  41.  
  42. /***********************************************************************
  43.  *
  44.  * Cme Object Private Data
  45.  *
  46.  ***********************************************************************/
  47.  
  48. #include "CmeP.h"
  49. #include "CmeBSB.h"
  50.  
  51. /************************************************************
  52.  *
  53.  * New fields for the Cme Object class record.
  54.  *
  55.  ************************************************************/
  56.  
  57. typedef struct _CmeBSBClassPart {
  58.   XtPointer extension;
  59. } CmeBSBClassPart;
  60.  
  61. /* Full class record declaration */
  62. typedef struct _CmeBSBClassRec {
  63.     RectObjClassPart       rect_class;
  64.     CmeClassPart     cme_class;
  65.     CmeBSBClassPart  cme_bsb_class;
  66. } CmeBSBClassRec;
  67.  
  68. extern CmeBSBClassRec cmeBSBClassRec;
  69.  
  70. /* New fields for the Cme Object record */
  71. typedef struct {
  72.     /* resources */
  73.     String label;        /* The entry label. */
  74.     int vert_space;        /* extra vert space to leave, as a percentage
  75.                    of the font height of the label. */
  76.     Pixmap left_bitmap, right_bitmap; /* bitmaps to show. */
  77.     Dimension left_margin, right_margin; /* left and right margins. */
  78.     Pixel foreground;        /* foreground color. */
  79.     XFontStruct * font;        /* The font to show label in. */
  80.     XtJustify justify;        /* Justification for the label. */
  81.     String menu_name;        /* The submenu to pop up. */
  82.  
  83. /* private resources. */
  84.  
  85.     Boolean set_values_area_cleared; /* Remember if we need to unhighlight. */
  86.     GC norm_gc;            /* noral color gc. */
  87.     GC rev_gc;            /* reverse color gc. */
  88.     GC norm_gray_gc;        /* Normal color (grayed out) gc. */
  89.     GC invert_gc;        /* gc for flipping colors. */
  90.     Boolean ticking;        /* is the pop-up timer ticking? */
  91.     XtIntervalId id;        /* pop-up timer id */
  92.  
  93.     Dimension left_bitmap_width; /* size of each bitmap. */
  94.     Dimension left_bitmap_height;
  95.     Dimension right_bitmap_width;
  96.     Dimension right_bitmap_height;
  97.  
  98. } CmeBSBPart;
  99.  
  100. /****************************************************************
  101.  *
  102.  * Full instance record declaration
  103.  *
  104.  ****************************************************************/
  105.  
  106. typedef struct _CmeBSBRec {
  107.   ObjectPart         object;
  108.   RectObjPart        rectangle;
  109.   CmePart         cme;
  110.   CmeBSBPart   cme_bsb;
  111. } CmeBSBRec;
  112.  
  113. /************************************************************
  114.  *
  115.  * Private declarations.
  116.  *
  117.  ************************************************************/
  118.  
  119. #endif /* _XawCmeBSBP_h */
  120.